@ECHO OFF
SETLOCAL
SET sh_folder="%~dp0"
IF EXIST "%sh_folder%\..\myrpc-client" (
    PUSHD "%sh_folder%\..\myrpc-client"
    SET OUT_FOLDER=src\thrift\java
    IF EXIST %OUT_FOLDER% RMDIR  %OUT_FOLDER% /s/q
    CALL mvn com.facebook.mojo:swift-maven-plugin:generate
    POPD
)
ENDLOCAL